Skip to content

ggplotly not recognizing color as aesthetic mapping #2034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

moutikabdessabour
Copy link
Contributor

@moutikabdessabour moutikabdessabour commented Sep 28, 2021

Closes #2031. ggplot internally converts color to colour. Note that running the tests locally results in the deletion of _snap folder. @jackparmer @cpsievert. Maybe I should stop using git commit -am

Copy link
Collaborator

@cpsievert cpsievert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be better if this logic were closer to the actual tooltip text construction, probably here

if (!identical(p$tooltip, "all")) {
map <- map[names(map) %in% p$tooltip | map %in% p$tooltip]
}

@moutikabdessabour
Copy link
Contributor Author

@cpsievert done

@moutikabdessabour moutikabdessabour merged commit 94fa7da into plotly:master Oct 14, 2021
@cpsievert
Copy link
Collaborator

@moutikabdessabour in the future please update the NEWS.md and check with me before merging.

@moutikabdessabour
Copy link
Contributor Author

@cpsievert sorry but I figured everything was resolved.

@cpsievert
Copy link
Collaborator

It's ok, but please start a new PR that adds news items for the 2 PRs that you merged

@moutikabdessabour
Copy link
Contributor Author

Ok will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tooltip argument of ggplotly doesn't recognize "color" as possible aesthetic mapping
2 participants